package com.entrogy.service.impl;

import com.entrogy.bean.ConsumeListEntity;
import com.entrogy.dao.ConsumeListMapper;
import com.entrogy.service.ConsumeListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**花费或充值流水service接口实现类
 * @Author 许红松
 * @date 2019/6/17 0017 下午 2:12
 */
@Service("consumeListService")
public class ConsumeListServiceImpl  implements ConsumeListService {

    @Autowired
    private ConsumeListMapper consumeListMapper;//花费或充值流水dao接口
    /**
     * 花费或充值List
     * @param map
     * @return
     */
    @Override
    public List<ConsumeListEntity> getConsumeList(Map<String,Object> map){
        return  consumeListMapper.getConsumeList(map);
    };

    /**
     * 花费或充值的详细信息
     * @param id
     * @return
     */
    @Override
    public ConsumeListEntity getConsumeListById(String id){
      return   consumeListMapper.getConsumeListById(id);
    };
}
